﻿//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1998-2024 Glodon Company Limited.
//
// Licensed under the MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the “Software”),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//////////////////////////////////////////////////////////////////////////////
#pragma once

#include "StructureInstanceInput.h"
#include "GbmpBuiltInParameterStaticVauleListItems.h"

namespace gcmp
{
    struct GM_STRUCTURE_EXPORT StructureWallInput : public StructureLinearInstanceInput
    {
        virtual ~StructureWallInput() {};

        StructureWallInput()
        {
            StartOffset = 0.0;
            EndOffset = 0.0;
            AssociatedPlaneOffset = 0.0;
            TopPlaneOffset = 0.0;
            StartHeight = 2000.0;
            EndHeight = 2500.0;
            WallHeight = 3000.0;
            IsVariable = false;
            TopAssociatedPlaneId = ElementId::InvalidID;
            ConcreteType = ConcreteStrengthGradeType::CSG_C30;
        }

        double StartOffset;                      // 变截面墙起点偏移
        double EndOffset;                        // 变截面墙终点偏移
        double AssociatedPlaneOffset;            // 底部关联标高偏移
        double TopPlaneOffset;                   // 顶部关联标高偏移
        double StartHeight;                      // 变截面墙起点墙高
        double EndHeight;                        // 变截面墙终点墙高
        double WallHeight;                       // 基本墙墙高 
        bool IsVariable;                         // 是否是变截面墙
        ElementId TopAssociatedPlaneId;          // 顶部关联平面ID
        ConcreteStrengthGradeType ConcreteType;  // 混凝土强度等级
    };
}
